//
//  SHCar.m
//  SDemo
//
//  Created by gg on 2018/8/1.
//  Copyright © 2018年 gg. All rights reserved.
//

#import "SHCar.h"

@implementation SHCar

/**
 调用顺序
 2018-08-01 14:48:23.829723+0800 SDemo[71830:2039827] 调用will方法
 2018-08-01 14:48:23.829879+0800 SDemo[71830:2039827] 调用set
 2018-08-01 14:48:23.830282+0800 SDemo[71830:2039827] 结果：{
 kind = 1;
 new = car1;
 }
 2018-08-01 14:48:23.830646+0800 SDemo[71830:2039827] 调用did方法
 
 */
+ (void)load {
    NSLog(@"car load");
    
}

-(void)setName:(NSString *)name{
    _name = name;
    NSLog(@"调用set");
}

-(void)willChangeValueForKey:(NSString *)key {
    [super willChangeValueForKey:key];
    NSLog(@"调用will方法");
}


-(void)didChangeValueForKey:(NSString *)key {
    [super didChangeValueForKey:key];
    NSLog(@"调用did方法");
}


//void _NSSetObjectValueAndNotify  {
//    will
//    setname
//    did
//}


@end
